<style>
    textarea{
        resize: none;
    }
	.btn_box{
		    width: 100px;
    height: 40px;
    text-align: center;
    color: #fff;
    background: #26c17b;
    border: none;
    outline: none;
    cursor: pointer;
    display: block;
		}
</style>
<!-- 内容 -->
<div id="right_box">
<div class="right_a">
            <a href="/empress/wechart.php"><span class="right_box1 set_menu"><div class="btn_box">自定义菜单</div></span></a>
            <a href="/empress/wechart.php?action=subscribe"><span class="right_box1 set_menu" ><div class="btn_box">首次关注设置</div></span></a>
            <a href="/empress/wechart.php?action=set_token"><span class="right_box1 set_menu"><div class="btn_box">微信接口配置</div></span></a>
            <a href="/empress/wechart.php?action=material"><span class="right_box1 set_menu" ><div class="btn_box">图文消息管理</div></span></a>
            <a href="/empress/wechart.php?action=option_url"><span class="right_box1 set_menu" style="border:1px solid #fff"><div class="btn_box">自定义URL</div></span></a>
 </div>
<link href='/static/adm/css/main.css' rel='stylesheet' type='text/css' />
<link href='/static/adm/css/global.css' rel='stylesheet' type='text/css' />
<link href='/static/adm/css/wechat.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/static/adm/js/jquery.min.js'></script>
<script type='text/javascript' src='/static/adm/js/global.js'></script>
<script type='text/javascript' src='/static/adm/js/wechat.js?<?php echo time();?>'></script>
<link href='/static/adm/operamasks/operamasks-ui.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/static/adm/operamasks/operamasks-ui.min.js'></script>
<script type='text/javascript' src='/static/adm/masonry/masonry.min.js'></script>
<script language="javascript">$(window).load(wechat_obj.url_init);</script>
<div class="wrap">
<div id="url" class="r_con_wrap">
		<form id="add_form" class="add_form " method="post" action="/empress/wechart.php?action=option_url">
		<table border="0" cellpadding="5" cellspacing="0">
			<tr>
				<td>名称 <input type="text" name="link_name" value="<?php echo $resInfo['link_name'];?>" size="25" class="form_input" notnull /></td>
				<td>Url <input type="text" name="link_url" value="<?php echo $resInfo['link_url'];?>" size="40" class="form_input" notnull /></td>
				<td><input type="submit" class="submit" value="<?php if($resInfo['id']==0){?>添加URL<?php }else{?>更新URL<?php }?>" name="submit_btn"></td>
			</tr>
		</table>
		<input type="hidden" name="do_action" value="wechat.url">
		<input type="hidden" name="id" value="<?php echo $resInfo['id'];?>" />
	</form>
	<table border="0" cellpadding="5" cellspacing="0" class="r_con_table">
		<thead>
			<tr>
				<td width="10%" nowrap="nowrap">序号</td>
				<td width="30%" nowrap="nowrap">名称</td>
				<td width="50%" nowrap="nowrap">Url</td>
				<td width="10%" nowrap="nowrap" class="last">操作</td>
			</tr>
		</thead>
		<tbody>
        <?php foreach($resUrl as $k=>$r){?>
			<tr>
				<td nowrap="nowrap"><?php echo ($p-1)*15+$k;?></td>
				<td><?php echo $r['link_name'];?></td>
				<td><a href="{$r.link_url}" target="_blank" title="{$r['link_url']}"><?php echo mb_substr($r['link_url'],0,60,'utf-8');?></a></td>
				<td class="last" nowrap="nowrap">
					<a href="/empress/wechart.php?action=option_url&id=<?php echo $r['id'];?>"><img src="/static/adm/images/mod.gif" align="absmiddle" alt="编辑" /></a>
					<a href="/empress/wechart.php?action=option_url&do_action=wechat.url_del&id=<?php echo $r['id'];?>" onClick="if(!confirm('删除后不可恢复，继续吗？')){return false};"><img src="/static/adm/images/del.gif" align="absmiddle" alt="删除" /></a>
				</td>
			</tr>
        <?php }?>
		</tbody>
	</table>
	<div class="blank20"></div>
	<div id="turn_page">{$page}</div>
</div>
</div>
</div>